<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>简易 JSX 解析器</title>
    <link href="./css/style.css" rel="stylesheet" type="text/css" />
    <script src="./lib/prettier@3.1.1/standalone.js"></script>
    <script src="./lib/prettier@3.1.1/html.js"></script>
    <script src="./lib/highlightjs@11.9.0/highlight.min.js"></script>
    <script src="./js/index.js"></script>
  </head>
  <body>
    <div class="container">
      <div class="show-box">
        <div class="show-box-title">输入编译后的 JSX</div>
        <div class="show-box-body">
          <textarea rows="27" cols="75" id="textarea"></textarea>
        </div>
      </div>
      <div class="show-box">
        <div class="show-box-title">
          <div>JSX 转换结果</div>
          <div>
            <input type="radio" id="code" name="code" checked onclick="changeToCode()" />
            <label for="code">展示代码</label>
            <input type="radio" id="view" name="view" onclick="changeToView()"/>
            <label for="view">展示运行结果</label>
          </div>
        </div>
        <div class="show-box-body" id="app-code"></div>
        <div class="show-box-body" id="app-view" style="display: none;"></div>
      </div>
    </div>
    <div class="action-panel">
      <button onclick="restoreTarget(0)">测试目标 1（用例1）</button>
      <button onclick="restoreTarget(1)">测试目标 1（用例2）</button>
      <button onclick="restoreTarget(2)">测试目标 2</button>
      <button onclick="restoreTarget(3)">测试目标 3</button>
    </div>
  </body>
</html>